#ifndef _PERFORMANCE_CONTROLLER_H_
#define _PERFORMANCE_CONTROLLER_H_

#include "types.h"
#include "err.h"

typedef struct
{
    uint32_t cycles_lo;
    uint32_t cycles_hi;
}cycles_t;

void pm_init(void);
err_t clock_cycles_diff(cycles_t *a, cycles_t *b, cycles_t *diff);
err_t get_clock_cycles(cycles_t *ptr);




#endif
